package li.util;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class MyExe {
    @ExceptionHandler(Exception.class)
    public String handEx(Exception e){
        return e.getMessage();
    }
}
